/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2024-07-04 15:14:41
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2024-07-16 12:03:50
 * @FilePath: /vue3-uniapp/src/api/login.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import { un } from '@uni-helper/uni-network';

export class WxLoginParam {
    jsCode = '';
    mobileCode = '';
}
export const wxLogin = (param: WxLoginParam) =>
    un
        .post<HttpResult<string>>('/mini/api/login/login', param)
        .then((res) => res.data);
